calling stan::length explicitly