Change LOG_ALLOCATION macro to avoid need for #if

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Prefer implicit `this`

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Simplify Primitive registration

- remove unnecessary casts
- prefer implicit `this`

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Remove superfluous cast

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Clean number classes, should be properly immutable

Signed-off-by: Stefan Marr <git@stefan-marr.de>