fixed *_COUNT macros to really return the count, not the amount of siblings (count is siblings+1),
fixed _prefs_from_hardware() to save all custom plugin properties, indentation