Update flattenEnvironments to pass arbitrary default capabilities for all environments. Refs #21, #22.