FIX #211 and #232. Checking $java_args[@] for memory settings, too.

Finally. This was a bit tricky, but should be fixed now. @jsuereth you may want to add this to the `sbt-launcher-package` project, too.