Workaround for mono bug where ConstantExpression.Type is not set correctly