macroprocessor: add length command. closes #436