Fixed stupid bug in insert.

Basically nothing would have ever been inserted other than default
lines.
Added a few more type tests.
Merge branch 'release/0.6'
Merge tag '0.6' into develop

Release 0.6

Mainly a bug fix release (insert did not work at all).