Fixed regression introduced when moving from a class field to a primitive

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