proper handling of classes an zerowidth

From: https://github.com/perl6/nqp/commit/1c3c18352b0d3e9c7403c08ec088681fda1ffb01