Initial primitive-machine-word-population-count.

HARP backend support isn't in place yet.

This isn't ready for actual merging ... but it should be ready for review if anyone is interested, apart from the HARP backend support.