Fix for data from hiera - Fixnums don't work as port numbers

Couple of patches - one to fix port data from hiera, and one to improve error reporting.

Please let me know if these are reasonable / acceptable for inclusion, ta.