Support calling numpy.shape, numpy.size and numpy.dims in addition to the attribute version

Previous implementation of member variables did not allow this, it seems
to be OK now.