Namespaces return array rather than object

For consistency with services.