Fix template parse breaking in many funcalls.
Work around imbecilic implict type conversion in ruby sqlite3 lib.