Testing and a number of fixes

Adds basic testing of a number of types through TravisCI with phpunit (please add web-hook to your repository @evseevnn )
Also fixes a bunch of collection issues that popped up during testing.
I clarified in the Readme what are still known issues.

Looking forward to your feedback.