Share nested methods

Allow both Hash and Array to share nested methods