fix initializer assertion messages

(@stefanpenner / @rjackson)
Merge pull request #3464 from rjackson/improve-assertions

fix initializer assertion messages