A fix to the build and the jump-to-definition feature. Fixes #544, fixes #633

Fixes #544, fixes #633
in Java, I guess make an ArrayList, add most of the actions, maybe add the last action, and then convert to an array on the way out. easier in Scala.