Allow `compile` to return instance instead of dumping