new metamethod __len,__pairs,__ipairs in lua 5.2

`__len`,`__pairs`,`__ipairs` has been released in lua 5.2.  
I have test these three  metamethod in middleclass, it can work correctly.   
Please consider merge this branch into master . Thanks