Revisiting the Boundary Effects of Weak Nonlocality in Multilayered Dielectric Metamaterials: A Trace and Anti-trace Map Approach