A Functional Data Perspective and Baseline On Multi-Layer Out-of-Distribution Detection