Use default view mode for bundles without the field.
fixes iterating array
Fixes the view mode field options generation and removes the none option.
minor changes to the new helper function
complies coding standards and changes few comments