Make Cache.add/addAll resolve with undefined. Fixes #406