Merge pull request #3592 from nicktiberi/master Normalize and check upper/lower bounds of hats input on OS X