Fixed parameter storage to support struct parameters.
Merge pull request #1361 from muharred/master

Fixed parameter storage to support struct parameters.