Change to correct throw statement to preserve stack trace.
Merge pull request #145 from Frassle/throw

Preserve stack trace in OutOfMemory exception
[Rewrite] Refactored string prologue/epilogues

We currently have three categories of string parameters: `string`,
`string[]` and `StringBuilder`. (OpenTK 1.2 adds one more: `ref
string`.) Each category needs to be marshaled separately into a native
character array.

This commit implements the following changes:
- string[] epilogues are now correctly emitted, instead of being
ignored.
- string[] prologues and epilogues now use the same local variable name.
- all epilogues are now generated with a single pass over the function
parameters, instead of requiring a separate pass for each category.
- string prologues and epilogues now allocate local variables based on
the relevant parameter *name* rather than the parameter *type*.

Fixes issue #144.
Merge pull request #147 from thefiddler/arrayfix

[Rewrite] Refactored string prologue/epilogues
Merged develop into escl2
Fixed string reference prologue/epilogue

This commit fixes the following issues in string reference parameters:
- prologue now uses the same local variable name as the epilogue
- epilogue is no longer incorrectly skipped