ENH: Keyvals now support copy functions
ENH+FIX: Fixed weird problem & new option --debug-compare-states