Support parsing and checking packages that import other packages that only exist in source form

Closes gh-4