moved data_stack to types.hpp (made it a public type).