Fix bogus asserts and add new ones to shape rendering

Turns out floats are float32, not float64 ...
Merge pull request #1357 from tschneidereit/nat

Fix bogus asserts and add new ones to shape rendering