Version 1.1.1

* Reduced code repeated for cast implementations
* Moved test module into separate source file