Created the alignment tensor module return_tensor() function for returning tensors.
This takes fixed tensors into account, skipping them if the skip_fixed flag is set.
Authored by: bugman 2011-10-18
Parent: [r14878]
Child: [r14880]