add MetadataValue javadoc
Minor upgrades to various components
ISPN-3526 Inject dependecies into the marshaller used for compatibility mode

Also cleanup related tests.
ISPN-3497 getCountRowsSql() has wrong SQL syntax