fix spec tests, repo functionality revert

This should fix all of the spec, lint, and syntax checks

$repo = 0 functionality (not param) was removed, restored
$repo switched to bool from int, str2bool to maintain existing functionality
facts needed for java class set
global scoping resolved