added ARRAY_SZ, Finite State Machine macros to macros.h