Byte array handing and DbSqlSession improvements

As discussed in http://forums.activiti.org/content/bytearrayentity-improve-encapsulation.

https://jira.codehaus.org/browse/ACT-1687 and https://jira.codehaus.org/browse/ACT-1689 should be resolved as well.