Fix hinting bugs
Bump to v0.4.0