CLOUDIFY-2103 treat rules as list instead of dict.