Reporting function complexity on function:after and using array push/pop to handle nesting