Add some string methods && toJSON, fix extended time test, cleanup