Bug fixes, more tests, added as_hashref() to v2 objects.
Tests and bug fixes for v1 objects