Revert "Issue #2210197 by sun, longwave: Remove public access to Extension::$type, ::$name, ::$filename." Broke 'drush en simpletest' on testbots

This reverts commit 2c51074d59aee9ae21ee4c8dce41b1453580485e.