fixed bug #30 added hasOwnProperty for foreach
bug #39 : now is constructor checking for last position of string CONSTRUCTOR_POSITION_MARKER
so I can use in php code CONSTRUCTOR_POSITION_MARKER when I want to specific constructor position