Fix unneccessarry boxing of values.
part of #70.
Dodgy code fixes.
part of #70.
Fix bad practices.
part of #70.