resolved ambiguos (java8) cast
fixed a json format problem when some very complex function was passed via querystring