Add option to pass compiled expressions to command decorator

Also add flags option for uncompiled expressions, to compile them with.