try to implement getstatic and putstatic

hi penberg,
Could you please review this patch, I'm trying to implement getstatic and putstatic but not sure if it is correct.