type checking bug fixed in axes.py
changed expand to repeat for consistency with numpy