Decorater to allow a function to support list input (and output)

Used as decorator with a function f, it will apply f element-wise to an argument xs if xs is a list or tuple Otherwise it just applies f to xs.

XXX should this be a more universal function for PyMVPA