[WP] Switching slot to constref

Several style fixes