Refactored Type\FixedArray, added swap() method, added tests