fix busted tests
magnitude typed array bugfix
new function to convert typed arrays to normal ones