Allow rendering collections inline in templates
Check that the reference is available
Handle cases where an enumeration method doesn't return an array
Remove trailing whitespace