add function.shape, ndim, size
add function.shape, ndim, size

This patch adds the methods function.shape, function.ndim and
function.size, as well as support for numpy.shape, numpy.ndim and
numpy.size via the array function protocol.

wijnandhoitinga/nutils