Redmine#3285: bundlesmatching() function with acceptance test

Finishing up https://cfengine.com/dev/issues/3285

The namespace is always prepended so it's not ambiguous.

Will add documentation as soon as this is accepted.