A Comparison of the Dynamical Relaxations in a Model for Glass Transition in Polymer Nanocomposites and Polymer Thin Films