DRY specs
Enable filtering nodes by type in node enumeration method
Refactor Node#each_node
Update docs
Bump version to 0.5.0