two bug fixes for AA Comments UI

+ Fixes #367 regression by calling `to_s` on the namespace
+ Fixes #2294 by applying queries to the passed object