Fix for saving boolean properties in medium trust