Fixed bug where getRegisteredAQLFunctions() was not using the namespace filter.

A test for this has been added as well.