made AQL DOCUMENT function polymorphic
allow dynamic parameters in DOCUMENT()