Problem: abusing project name as prefix

Some files, like _selftest and _classes, should be using short prefix
not the project name. E.g. mlm vs. malamute.

Solution: allow optional prefix property.

Incidentally: also fix some other errors in generation.