Fix various bugs

User button events, User check initial value, tab switching, special
case optimisation for user defined functions.
Merge branch 'development' of https://github.com/OpenACCEL/OpenACCEL into development