Fix for AS7-6580

The commit here fixes the issue reported in https://issues.jboss.org/browse/AS7-6580 and also fixes an incorrect testcase. 

Henceforth, only the "local dependencies" (i.e. dependencies added as a result of Class-Path manifest attribute) of a RAR deployment will be auto exported as transitive dependencies to any module (typically modules of other deployments) which has the RAR as a dependency.

Please see https://github.com/jbossas/jboss-as/pull/4108 which was the original PR for this bug fix.