Ensures collections are immutable.
Needed a small workaround for ImmutableMap.
This can potentially be fixed with a jclouds GsonModule update.