CustomScoreQueryBuilder param values unexpectedly cast to java.lang.String

A hint that might help solve the riddle: if the value placed into the param
is a java.util.HashMap instead of Test,
that is .param("test", someHashMap<String, Test>)), it works as expected.

Alex