added Math.cos and Math.tan test case
Fix a bug that class variable can't be referenced from class method

Class method defined in singleton class should be evaluated in class
context not singleton class context.

fix #2515
need to add space for receiver to proc env; fix #2525

Conflicts:
	src/proc.c
add write barrier when iv is copied