[0.7.4] Removed alloc method and unneeded internal call to alloc.  Also added tests for method swap.