bugfix: allow static class variables to be passed by reference