Improve assertion for non-Array passed to #each