libpatcher: replaced type() with isinstance()

Also fixed bug in asm:470 pointed by Pavel Volkovitskiy