I see there is a new way to get the page template.
I've been using a fairly well discussed method to SET the page template for dynamic pages. We want these pages to be full width, so depending on the theme, the designer can set the template for these dynamic pages in their settings.
Yesterday, dynamic pages were correctly setting the page template using:
add_post_meta($posts->ID, '_wp_page_template', $use_template, TRUE);
After upgrading to WP 3.4, this no longer works, and we get the default template.