Allow use of directive without allowIn attribute (fix)

Fixes #51 by making allowIn attribute optional and adding the corresponding tests.