Updated enqueue to use std::type_of rather than dectype based on changes in the original repo.