Almost Automorphic Type and Almost Periodic Type Functions in Abstract Spaces