Fix intermittent test failures due to results ordering issues.

Make bundles-containing and charm-related API
endpoints return results in a specific order.
Why the change from pointer to value?