finally effects work but cannot create arrays inside switch-case statement scope