adding functions: count, min, max, avg, sum, len, index, isNaN, isInf, mod
fixing incorrect quoting for JSON output
Merge branch 'json-escape' into mingle.io

Conflicts:
	src/comp/value.go