fix of calling library functions with optional arguments
- inconsistent stack fixed
- simplified argument conversion

git-tfs-id: [http://falcon:8080/tfs/Projects]$/Phalanger/Main;C4374