Fixed the construction of R.java files for the dependencies of an APK.

This fixes issue-463.
It also fixes the issue I was having with Proguard failing for libraryprojects-aar-actionbarsherlock-example.

The dependencies passed into appt for R.,java generation were being incorrectly gathered.

NB plugin-samples builds from end to end.