replace string head of sexpression with integer

replace string head of sexpression with integer, for speed optimization.

all tests passed, except tests in test/test_dao.coffee.