gpio: Rework dynamic GPIO HAL

Now it works pretty fast on AVR, not so far from macro version.

Signed-off-by: Nikita 'webconn' Maslov <wkernelteam@gmail.com>