Curvilinear schemes and maximum rank of forms