added flush_rewrite_rules on Theme switch

should fix #447