changing all global variables declaration keys to declare_var specification to order them easily afterwards
fixed bug in procedures_defreturn return type