Fix for issue #114

This prevents the compiler from thinking that it has a reference to
any variable before it's actually output the assignment for said var.
Merge pull request #118 from mattbasta/varfix

Fix for issue #114