added coerce.py for coercing types in a more PHP friendly manner
bug fix on executer and phpfunction