allow references as function parameters
make test more reliable
better clone some objects returned by AQL user-defined functions