Implemented support for referencing classes/traits in same package (omitting package name).

Fixed typo in trait stereotype constant.
Implemented helper methods for extracting branches of junction.