Use expression count, rather than character size, for generic function heuristic

This removes the problem where minified files had much more functions
instantiated (because they were smaller) than regular files.

Issue #170
[demo] Fix unintended css rule order