An extended type system with lambda-typed lambda-expressions (Logical Methods in Computer Science, 2020)