Add default imports to groovy

Fix Issue #627 and Fix Issue #600