Set MEMFLAG_PURE by default - bug exposed by regenerated files.
Print style even if it is 0. Add testcase.