Prefer prefix ++/-- on non-primitive types

Postfix ++/-- might cause the creation of a tmp instance
that might be optimized out. Mights are bad. Prefix doesn't
have this problem.
Fix some potential null pointer dereferences

I don't think there were any instances of these causing problems
but it's better to be safe than sorry.