use 'isa' instead of 'typeof(.) <:'
fix index style
update README.md
use v0.4 compatible syntax in test