Make views a package
Fix the bug with ensureYieldsExist definition