While migrating our local modules from puppet 2 to puppet 3 I think I've found a backwards-incompatible change that's not listed in the release notes. I'd like to verify that what I'm seeing is expected, and make sure I'm not missing any other side-effects of the change.
In puppet 2 templates, array slices which returned a single element were still returned as an array, so a structure like this was valid:
<%- myarray[-1].each do |text| -%>
<%=text%>
<%- end -%>
In puppet 3 templates this throws an error:
undefined method `each' for "foo":String at ...
Is there anything else to this change that I'm missing, or are there other side-effects to this I should be watching out for?