use stub() method directly
move some method to Reflection
refactoring for getElementForArray()
support stub() for array object; add the related test;