Bug fixes

Fixes bugs in Math extension, allows vectors to be designated as Array
or list of elements.