Fixed last three tests. Spec needs some changes
Deleted unnecessary test
Fixed bug in regex`
Fixed various bugs in utils
Fixed various bugs and added Equals method
Added serialization tests
Fixed bugs in serialization API. All tests pass as of now.