Merge pull request #1 from melezov/master

Added toByteArray / toString methods
Added helper methods to scala-api, not caching java-api results.